package com.practice.bootdemo.jdemo;

import org.apache.commons.lang3.RandomStringUtils;

import java.util.Random;

/**
 * @author :Administrator
 * @description: TODO edit class Description
 * @create date: 2022/4/5 23:21
 */
public class RandomTest {
    public static void main(String[] args) {
        String ramdomStr="aa";
        StringBuilder sb=new StringBuilder();
//        sb.append(ramdomStr).append(RandomStringUtils.randomAscii(4));
        sb.append(ramdomStr).append(RandomStringUtils.random(4,"@!1234567890abcdefghijklmnopqrstuvwxyz"));
        System.out.println(sb);
    }
}
